package datastructure.ch02_arrays.ch07_dynamic_array;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 *
 * @author guodd
 * @version 1.0 use jdk 1.8
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Person {
    /**
     * 属性描述：名称
     */
    private String name;

    /**
     * 属性描述：年龄
     */
    private Integer age;

    @Override
    protected void finalize() throws Throwable {
        super.finalize();
        System.out.println("对象销毁...");
    }
}
